#include <qapplication.h>
#include "GLWidget.h"
#include "MainWindow.h"
#include "SceneTabWidget.h"

int main( int argc, char ** argv )
{
    QApplication a( argc, argv );

	MainWindow* w = MainWindow::getInstance();
	
	SceneTabWidget   *scenetab  = new SceneTabWidget(0);
	w->addMenuTab("Simulacio",   scenetab);
	scenetab ->connectToGLWidget(w->getGLWidget());

    w->show();
	
	a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())) ;
    return a.exec();
}
